import java.util.Comparator;
/**
 * VectorComparatorX
 * 
 * Comparator for X position of a Vector
 * @author jenc, Jeppe
 *
 */
public class VectorComparatorX implements Comparator<VectorPos>
{
    public int compare(VectorPos o1, VectorPos o2) 
    {
        VectorPos vp1 = (VectorPos) o1;
        VectorPos vp2 = (VectorPos) o2;
        return (vp1.xPos - vp2.xPos);
    }
}
